<!--
 * @Author: your name
 * @Date: 2021-11-10 14:24:45
 * @LastEditTime: 2021-11-10 14:59:04
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \vue-note\day01\05.其他表单使用v-model.html
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
  </head>
    <div id="app">
      <form action="">
        用户名：<input type="text" v-model="name" /><br />
        密　码：<input type="text" v-model="pass" /><br />
        性　别：男
        <input type="radio" v-model="gender" value="男" name="sex" /> 女
        <input type="radio" name="sex" v-model="gender" value="女" /><br />
        城　市：<select name="" id="" v-model="city">
          <option value="北京">北京</option>
          <option value="上海">上海</option>
          <option value="武汉">武汉</option>
          <option value="成都">成都</option></select
        ><br />
        爱　好：游泳<input type="checkbox" value="游泳" v-model="hobby" />
        射击<input type="checkbox" value="射击" v-model="hobby" /><br />
        简　介：<textarea
          name=""
          id=""
          cols="30"
          rows="10"
          v-model="bio"
        ></textarea>
        <br />
        <input type="checkbox" name="" id="" v-model="isAgree" /> 同意
      </form>
    </div>
    <script>
      new Vue({
        el: "#app",
        data: {
          msg: "hello",
          name: "jack",
          pass: "1234556",
          age: 20,
          gender: "男",
          city: "武汉",
          hobby: ["游泳"],
          bio: "aaa",
          isAgree: false,
        },
      });
    </script>
  </body>
</html>
